<template>
  <div class="town_top">
    <div class="top_left" style="cursor: pointer;" @click="gohome">
      <img :src="pic.imgurl2" alt="">
      <span>回到首页</span>
    </div>
    <h3>一体化决策分析中心-乡镇支出监管中心</h3>
    <div class="top_right">
      <img :src="pic.imgurl3" alt="">
      <span>浙江省-绍兴市-柯桥区</span>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      pic: {
        imgurl2: require('@/assets/img/townPreview/回到首页.png'),
        imgurl3: require('@/assets/img/townPreview/定位.png')
      }
    };
  },
  methods: {
    gohome() {
      this.$router.push('/');
    }
  }
};
</script>
<style lang="scss" scoped>
$vw: 1920px;
@function px2vw($px) {
  @return $px / $vw * 100vw;
}
.town_top {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .top_left {
    border: 1px solid #1fd2ff;
    border-radius: 9px;
    padding: px2vw(6px) px2vw(50px);
    img {
      vertical-align: middle;
    }
    span {
      color: #1fd2ff;
      display: inline-block;
      vertical-align: middle;
      font-size: px2vw(16px);
    }
  }
  h3 {
    color: #1fd2ff;
    font-size: px2vw(32px);
    margin: 0;
  }
  .top_right {
    margin-left: 16px;
    vertical-align: middle;

    span {
      color: #1fd2ff;
      font-size: px2vw(18px);
      display: inline-block;
      vertical-align: middle;
    }
  }
}
</style>
